<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>操作成功</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
</head>
<body>
    <div class="container">
        <div class="panel panel-success">
              <div class="panel-heading">
                    <h3 class="panel-title">注册成功！</h3>
              </div>
              <div class="panel-body">
                     <p style="color:green;font-size:23px;font-weight:600;">恭喜您注册成功!</p>
                     <p>系统将在<span id="time" style="color:red;"></span>后跳转,如果不想等待,请点击<a href="login.php">这里</a>跳转。</p>
              </div>
        </div>
    </div>
</body>
</html>
<script>
    function playSec(num){
        var time = document.getElementById("time");
        time.innerHTML = num;
        if(--num>0){
            setTimeout("playSec("+num+")",1000);
        }
        else{
            location.href="login.php";
        }
    }
    playSec(4);
</script>